{if $full_page}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{$title}</title>
<link rel="stylesheet" href="Res/boot/css/bootstrap.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="Res/boot/css/bootstrap-theme.min.css" type="text/css" media="screen" />
<script type="text/javascript" src="Res/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="Res/js/jquery.cookie.js"></script>
<script type="text/javascript" src="Res/boot/js/bootstrap.min.js"></script>
<script type="text/javascript" src="Res/js/listTable.js"></script>
<link rel="stylesheet" href="Res/css/page.css" type="text/css" />
<link rel="stylesheet" href="Res/css/global.css" type="text/css" />
<script type="text/javascript" src="Res/js_time/laydate.js"></script>
{literal}
<style>
    .listDiv{margin:0 auto;}  
    table tbody td span:hover{background-color:#00E8D7;font-weight: 100;}
</style>
{/literal}
</head>
<body>
<div class="container-fluid">
	<div class="row-fluid">
            <div class="span12 panel panel-info">                
                <span class="cp_title">{$title}</span>
                <div class="add_cp">
                        <a href="index.php?c=config&m=create">+添加配置</a>
                </div>	
                <div class="panel-heading">
                    <label for="txt_code">配置名称：</label>
                    <input class="input-medium search-query" id="txt_code" name="txt_code" type="text" placeholder="配置名称" />  
                    
                    <label for="txt_value">配置值:</label>
                    <input class="input-medium search-query" id="txt_value" name="txt_value" type="text" placeholder="配置值" />  
                   
                    <button type="button" id="btn_search" class="btn btn-success">查找</button>                        
                </div>
 
                <div class="listDiv" id="listDiv">
{/if}
                <table id="data_table_id" class="table table-hover table-bordered">
                    <thead>
                    <tr>                        
                        <th><a href="javascript:listTable.sort('id', 'DESC');" title="点击对列表排序">ID</a>{$sort_id}</th>
                        <th>配置名称</th>
                        <th>配置值</th>
                        <th>权重</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>    
                        {foreach from=$data.pageData item=row}
                        <tr>
                            <td>{$row.id}</td>
                            <td><span onclick="listTable.edit(this, 'edit_fields', {$row.id}, 'code')" title="点击修改">{$row.code}</span></td>
                            <td><span onclick="listTable.edit(this, 'edit_fields', {$row.id}, 'value')" title="点击修改">{$row.value}</span></td>
                            <td><span onclick="listTable.edit(this, 'edit_fields', {$row.id}, 'sort_order')" title="点击修改">{$row.sort_order}</span></td>                                              
                            <td style="text-align:center;">          
                                <button class="btn btn-info" title="此操作真的移除，無法挽回，慎重" type="button" onclick="listTable.remove({$row.id}, '此操作真的移除，無法挽回，慎重')">
                                    <span class="glyphicon glyphicon-trash"></span>
                                </button>
                            </td>
                        </tr>
                        {/foreach}
                    </tbody>
                    <tfoot>
                        <!-- 分页数据 -->
                        <tr>
                            <td colspan="8"><div class="iPageHtml">{$data.pageHtml}</div></td>
                        </tr>
                    </tfoot>
                </table>
              
{if $full_page}
                </div>
            </div>
	</div>
</div>
<div style="clear:both;"></div>
<script type="text/javascript">
listTable.m = 'query';
listTable.divid = 'listDiv';
$("#btn_search").click(function(){
    listTable.filter['page'] =1;
    listTable.filter['txt_code'] = $("#txt_code").val();
    listTable.filter['txt_value'] = $("#txt_value").val();
    listTable.loadList();
});    
</script>
</body>
</html>
{/if}